package myspring.List;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * <pre>
 *   Title: Chinese.java
 *   Description: 
 *   Copyright: yundaex.com Copyright (c) 2013
 *   Company: 上海韵达货运有限公司
 * </pre>
 * 
 * @author liuzhaoqing
 * @version 1.0
 * @date 2014年10月28日
 */
public class Chinese implements Person {
	private List<String> schoolsList;
	private Map<String, Integer> scores;
	private Map<String, Axe> phaseAxes;
	private Properties health;
	private Set<Axe> axes;
	private String[] books;
	
	public Chinese() {
		System.out.println("实例化bean。。。。");
	}

	public List<String> getSchoolsList() {
		return schoolsList;
	}

	public void setSchoolsList(List<String> schoolsList) {
		this.schoolsList = schoolsList;
	}

	public Map<String, Axe> getPhaseAxes() {
		return phaseAxes;
	}

	public void setPhaseAxes(Map<String, Axe> phaseAxes) {
		this.phaseAxes = phaseAxes;
	}

	public Properties getHealth() {
		return health;
	}

	public void setHealth(Properties health) {
		this.health = health;
	}

	public String[] getBooks() {
		return books;
	}

	public void setBooks(String[] books) {
		this.books = books;
	}

	public Map<String, Integer> getScores() {
		return scores;
	}

	public void setScores(Map<String, Integer> scores) {
		this.scores = scores;
	}

	public Set<Axe> getAxes() {
		return axes;
	}

	public void setAxes(Set<Axe> axes) {
		this.axes = axes;
	}

	@Override
	public String toString() {
		return "Chinese [schoolsList=" + schoolsList + ", scores=" + scores + ", phaseAxes=" + phaseAxes + ", health=" + health + ", axes=" + axes + ", books=" + Arrays.toString(books) + "]";
	}
	
	public static void main(String[] args) {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("spring-context.xml");
		Chinese chin = ctx.getBean("chinese", Chinese.class);
		System.out.println(chin);
	}
}
